package com.leizi.igym.mapper;

import com.leizi.igym.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leizi.igym.dto.DoughnutStatisticsDTO;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
* @author PC
* @description 针对表【t_user(健身房用户表)】的数据库操作Mapper
* @createDate 2024-04-04 09:42:24
* @Entity com.leizi.igym.domain.User
*/
public interface UserMapper extends BaseMapper<User> {
    @Select("select count(0) from t_user tm where tm.create_time <=#{endTime} and tm.deleted = 0;")
    Integer selectAllCount(Map map);

    @Select("select count(0) from t_user tm where tm.create_time <=#{endTime} and tm.create_time >= #{beginTime} and tm.deleted = 0;")
    Integer selectNewCount(Map map);
}






